<html>
<head>
  <title>Stats for {{ username }}</title>
  <link rel="stylesheet" type="text/css" href="/static/style.css" />
</head>
<body>
<h1>Stats for {{ username }}</h1>
Total screenings: {{ total_screenings }}
<br>Screenings since account inception: {{ screenings_inception }}
<br>Screenings attended: {{ attended }}
<br>Screenings missed since account inception: {{ missed }}
<br>Screenings attended out the last 5 recent ones: {{ attended_recent }}
<br>Screenings missed out the last 5 recent ones: {{ missed_recent }}
<br>Vote weight: {{ weight }}
<pre>
>>> attended
{{ attended }}
>>> missed
{{ missed }}
>>> attended_recent
{{ attended_recent }}
>>> missed_recent
{{ missed_recent }}
>>> all_time_score = max(-0.5, min(0.5, 0.05 * (attended - missed)))
>>> all_time_score
{{ all_time_score }}
>>> recent_score = 0.1 * (attended_recent - missed_recent)
>>> recent_score
{{ recent_score }}
>>> lock = {{ lock }}
>>> max(0, min(1, lock + all_time_score + recent_score))
{{ weight }}
</pre>

See <a href="/static/weighting.html">weighting</a> for a description of this calculation.
</body>
</html>
